package com.lh.pro.rpc;

import com.sise.service.UserRpcService;
import org.springframework.stereotype.Service;

/**
 * 作者：idea
 * 日期：2018/8/11
 * 描述：用户service服务调度
 */
@Service("userService")
public class UserService implements UserRpcService{

    private static Integer port=113;

    /**
     * 返回用户名的服务
     * @param username
     * @return
     */
    public String  getUserName( String username) throws InterruptedException {
        System.out.println("this is "+username);
        return username+" hello ! this is server "+port;
    }
}
